package com.shen.canal;

import com.shen.canal.client.CanalClient;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

@SpringBootApplication
public class CanalApplication implements CommandLineRunner {

    @Resource

    private CanalClient canalClient;
     public static void main(String[] args) {
             SpringApplication.run(CanalApplication.class, args);
             System.out.println(" canal Application");
     }

    @Override
    public void run(String... args) throws Exception {
        canalClient.run();
    }
}
